#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <cstring>
#include <unistd.h>
using namespace std;
int main()
{
    int fd=open("./fifo",O_WRONLY|O_TRUNC);
    char buf[]="I need some bread and milk";
    write(fd,buf,strlen(buf));
    close(fd);
    return 0;
}